updating oE get_integer32

get_integer32

include io.e 
namespace io 
public function get_integer32(integer fh) 

reads the next four bytes from a file and returns them as a single integer.

Parameters:
  1. fh : an integer, the handle to an open file to read from.
Returns:

An atom, between -1 and power(2,32)-1, made of the bytes that could be read from the file. When an end of file is encountered, it returns -1.

Comments:
  • This function is normally used with files opened in binary mode, "rb".
Example 1:
 
integer fn 
fn = open("temp", "rb")  -- an existing file 
 
atom file_type_code 
file_type_code = get_integer32(fn) 
See Also:

getc, gets, get_bytes, get_dstring

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu